1 /************************************************************
2 * Copyright *
3 * Portions of this software are Copyright (c) 1993 - 2002, *
4 * Chad Z. Hower (Kudzu) and the Indy Pit Crew *
5 * - http://www.nevrona.com/Indy/ *
6 ************************************************************/
7 package org.indy;
8
9 /***
10 * DOCUMENT ME!
11 *
12 * @version $Revision$
13 * @author $author$
14 */
15 public class ProtocolException extends IndyException {
16 private final int errorCode;
17
18 /***
19 * Creates a new ProtocolException object.
20 *
21 * @param errorCode DOCUMENT ME!
22 * @param msg DOCUMENT ME!
23 */
24 public ProtocolException(int errorCode, String msg) {
25 super(msg);
26 this.errorCode = errorCode;
27 }
28
29 /***
30 * Creates a new ProtocolException object.
31 *
32 * @param result DOCUMENT ME!
33 */
34 public ProtocolException(RFCReply result) {
35 this(result.getNumericCode(), result.getText().getText());
36 }
37
38 /***
39 * DOCUMENT ME!
40 *
41 * @return DOCUMENT ME!
42 */
43 public final int getReplyErrorCode() {
44 return errorCode;
45 }
46 }
This page was automatically generated by Maven